package com.api.taobao;

import com.taobao.api.ApiException;
import com.taobao.api.DefaultTaobaoClient;
import com.taobao.api.TaobaoClient;
import com.taobao.api.request.ItemGetRequest;
import com.taobao.api.response.ItemGetResponse;

/**
 * @author liuchao
 * @version $Id: ItemGet.java,v 0.1 2012-9-17 ����12:49:55 liuchao Exp $
 */
public class ItemGet {
    
    static TaobaoClient client=new DefaultTaobaoClient("http://gw.api.taobao.com/router/rest", "12120462", "c5eed5e31351041ea23bfbb7744f8324");
    
    public static ItemGetResponse getItemGetRes( Long iid ) throws ApiException{
        ItemGetRequest req=new ItemGetRequest();
        req.setFields("num_iid,cid, num,price, pic_url,title,desc, nick, detail_url, props_name,props, item_img.url");
        req.setNumIid(iid);
        return client.execute(req);
    }
    
}

